
import express from 'express';
import indexController from '../../controller/client';
const router = express.Router();

/* GET home page. */
router.get('/', function(req, res, next) {
  res.render('index', { title: 'library' });
});

// 获取所有商品
router.get("/getGoods", indexController.getGoods);
// 获取商品详情
router.post("/getGoodsDetails", indexController.getGoodsDetails);


export default router
